package 线程.day2.demo6;

public class Test {
    public static void main(String[] args)throws Exception {
        A a=new A();
        Thread t=new Thread(a,"自定义线程");

        t.start();



        int main=0;
        while (main<100){
            Thread.sleep(500);
            System.out.println(Thread.currentThread().getName()+",main:"+main++);
        }
    }
}
